namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("CY_COAL_SAVEDETAIL")]
    public partial class CY_COAL_SAVEDETAIL
    {
        [Key]
        [StringLength(40)]
        public string DETAIL_ID { get; set; }

        [Required]
        [StringLength(40)]
        public string SAVE_ID { get; set; }

        [Required]
        [StringLength(40)]
        public string BATCH_CODE { get; set; }

        public decimal TOTAL { get; set; }

        public decimal REMAIN_AMOUNT { get; set; }

        public decimal SAVE_AMOUNT { get; set; }

        public decimal? COALYARD { get; set; }

        [StringLength(40)]
        public string SAVE_POSITION { get; set; }

        [Required]
        [StringLength(40)]
        public string LAST_CODE { get; set; }

        public string RANGE { get; set; }

        public byte LENGTH { get; set; }

        public byte? WIDTH { get; set; }

        public byte? HEIGHT { get; set; }
        
        public DateTime UPDATE_TIME { get; set; }
        public virtual CY_COAL_SAVE CY_COAL_SAVE { get; set; }
    }
}
